package anonymouschat.messages.clientrequests;

import java.io.Serializable;

import anonymouschat.messages.Message;

/**
 * This is the base class of all kinds of client requests
 * 
 * @author bh349
 * 
 */
public class ClientRequest extends Message implements Serializable {
	private static final long serialVersionUID = -7443155251263210842L;
	private String srcUserName;

	public ClientRequest(String userName) {
		this.srcUserName = userName;
	}

	/**
	 * @return &lt String &gt the user name of the client that created this request
	 */
	public String getSrcUserName() {
		return srcUserName;
	}

	@Override
	public String getAllContents() {
		return "ClientRequest: \n\tuserName: " + srcUserName;
	}
}
